Auto-Adaptive Step Straight-Line Algorithm

نویسندگان

  • Vincent Boyer
  • Jean-Jacques Bourdin
چکیده

67 O ne of the main functions of graphic displays is drawing straight lines. To draw lines quickly, the speed of the applied algorithm is critical. The following three different approaches exist: I discrete differential analysis (DDA), introduced by Bresenham, 1 I combinatory analysis, 2 and I linguistic methods. 3,4 The most famous approach remains the DDA, since extended by N-step algorithms. Here, we focus on this class of algorithms. Since three N-step algorithms have been published (N = 2 5 , N = 3 6 , N = 4 7), we analyzed them, studying only their time complexity because they compute the same approximation of the continuous line. Our analysis shows that improvements are small and don't support our objectives for speed. We propose a new algorithm that uses other properties , some of them already presented. 8 We also compare the performances of these algorithms and present the theoretical analysis and benchmarks that prove the new algorithm is at least twice as fast as earlier ones. Before discussing these algorithms in more detail, we introduce additional notations used throughout the article: I " Line " denotes the discrete straight segment between two points P(xp, yp) and Q(xq, yq), and I (u, v) describes the slope of lines u = xq − xp and v = yq − yp. Since the coordinates of P and Q are integers, the segment is an exact translation of line (0, 0)(u, v). A line may be given by a set of points or by its first point and a set of moves. For slope (u, v), the set of moves is always composed using two different codes. In the first octant, the codes are I X, representing an axial move, and I D, representing a diagonal move. N-step algorithms use the DDA method. The main idea is to choose one pattern (a set of points) among different possible patterns. A succession of tests that compare predefined values and a term E realize this choice. Iterating this process determines the set of patterns composing the straight line. A simple operation—number of iterations × number of instructions per loop—gives the time complexity. Let N be the number of points of one pattern. Let C be the number of possible patterns. Inside an iteration , let t be the number of tests, a the number of additions, and i the number of increments of E. …

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Adaptive Line Enhancement Using a Parallel IIR Filter with A Step-By-step Algorithm

 A step-by-step algorithm for enhancement of periodic signals that are highly corrupted by additive uncorrelated white gausian noise is proposed. In each adaptation step a new parallel second-order section is added to the previous filters. Every section has only one adjustable parameter, i.e., the center frequency of the self-tuning filter. The bandwidth and the convergence factor of each secti...

متن کامل

One Terminal Digital Algorithm for Adaptive Single Pole Auto-Reclosing Based on Zero Sequence Voltage

This paper presents an algorithm for adaptive determination of the dead timeduring transient arcing faults and blocking automatic reclosing during permanent faults onoverhead transmission lines. The discrimination between transient and permanent faults ismade by the zero sequence voltage measured at the relay point. If the fault is recognised asan arcing one, then the third harmonic of the zero...

متن کامل

Tuning of Extended Kalman Filter using Self-adaptive Differential Evolution Algorithm for Sensorless Permanent Magnet Synchronous Motor Drive

In this paper, a novel method based on a combination of Extended Kalman Filter (EKF) with Self-adaptive Differential Evolution (SaDE) algorithm to estimate rotor position, speed and machine states for a Permanent Magnet Synchronous Motor (PMSM) is proposed. In the proposed method, as a first step SaDE algorithm is used to tune the noise covariance matrices of state noise and measurement noise i...

متن کامل

Adaptive Strategies for Numerical IVPs Solvers

This paper is concerned with adaptive numerical methods for initial value problems governed by systems of ordinary differential equations. Here we introduce a novel step selection algorithm based on the simple idea that locally all continuous functions can be suitably approximated by a straight line. Finally we present two sample numerical computations performed by our step selection algorithm.

متن کامل

Modified fast climbing search auto-focus algorithm with adaptive step size searching technique for digital camera

A practical real-time auto-focus algorithm for digital camera ispresented. and it improves the reliability and speed of auto-focus process, especially suitable for mega-pixel high definition camera. The proposed algorithm adopts threshold gradient and edge point count technique besides focus value function, instead of traditional two-stage climbing search algorithm that uses focus value functio...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • IEEE Computer Graphics and Applications

دوره 20  شماره 

صفحات  -

تاریخ انتشار 2000